﻿using Coldairarrow.Business.baskstage.RefundType;
using Coldairarrow.Entity.baskstage.RefundType;
using Coldairarrow.Util;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Api.Controllers.baskstage.RefundType
{
    [Route("/baskstage/RefundType/[controller]/[action]")]
    public class BS_GetRefundRTypeController : BaseApiController
    {
        #region DI

        public BS_GetRefundRTypeController(IBS_RefundRTypeBusiness bS_RefundRTypeBus)
        {
            _bS_RefundRTypeBus = bS_RefundRTypeBus;
        }

        IBS_RefundRTypeBusiness _bS_RefundRTypeBus { get; }

        #endregion

        #region 获取

        [NoCheckJWT]
        [HttpPost]
        public async Task<List<BS_RefundRType>> GetDataList()
        {
            return await _bS_RefundRTypeBus.GetTypeList();
        }

        #endregion
    }
}